$def with (privData)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
$:privData['render'].header(privData)
<body>
$:privData['render'].pageheader(privData)

<h2>新增企业</h2>
<form action="$makeUrl('/admin/company/save')" method="post">
    <table width="750" border="0" cellspacing="0" cellpadding="1" class="addtable">
        <tr>
            <td width="100" scope="col">公司类别:</td>
            <td width="608" scope="col">
                    <SELECT  name="category" id="category">
                        $for k, v in privData['CATEGORY_LIST'].items():
                        <option value="$:k"
                        $if k == 1:
                            selected="selected"
                        >$:v</option>
                    </SELECT>
                </td>
        </tr>
        <tr>
            <td width="100" scope="col">公司Logo:</td>
            <td width="608" scope="col">
                $:privData['render'].thumbnail_select_widget(privData)
            </td>
        </tr>
        <tr>
            <td width="100" scope="col">公司名称:</td>
            <td width="608" scope="col"><input name="name" type="text" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">公司地址:</td>
            <td width="608" scope="col"><input name="address" type="text" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">会员帐号:</td>
            <td width="608" scope="col">
                    <SELECT  name="owner" id="owner">
                        $for k, v in privData['USER_LIST'].items():
                        <option value="$:k"
                        $if k == 1:
                            selected="selected"
                        >$:v</option>
                    </SELECT>
                </td>
        </tr>
        <tr>
            <td width="100" scope="col">联系人:</td>
            <td width="608" scope="col"><input name="contact" type="text" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">邮箱地址:</td>
            <td width="608" scope="col"><input name="email" type="email" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">固定电话:</td>
            <td width="608" scope="col"><input name="fixedphone" type="text"/></td>
        </tr>
        <tr>
            <td width="100" scope="col">移动电话:</td>
            <td width="608" scope="col"><input name="cellphone" type="text"/></td>
        </tr>
        <tr>
            <td width="100" scope="col">传真:</td>
            <td width="608" scope="col"><input name="faxno" type="text" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">邮政编码:</td>
            <td width="608" scope="col"><input name="postcode" type="text" /></td>
        </tr>

        <tr>
            <td width="100" scope="col">公司简介:</td>
            <td width="608" scope="col">
                <textarea name="desc" id="desc"></textarea>
            </td>
        </tr>
        <tr><td colspan="2" scope="col">
            <input type="submit" name="submit" value="保存" id="submit"/>
        </td></tr>
    </table>     
</form>
</body></html>

